/*
 * XML Type:  ColumnDefinition
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.ColumnDefinition
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML ColumnDefinition(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class ColumnDefinitionImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.ofx.types.x2003.x04.ColumnDefinition
{
    
    public ColumnDefinitionImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName COLNAME$0 = 
        new javax.xml.namespace.QName("", "COLNAME");
    private static final javax.xml.namespace.QName COLTYPE$2 = 
        new javax.xml.namespace.QName("", "COLTYPE");
    
    
    /**
     * Gets the "COLNAME" element
     */
    public java.lang.String getCOLNAME()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(COLNAME$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "COLNAME" element
     */
    public net.ofx.types.x2003.x04.GenericNameType xgetCOLNAME()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.GenericNameType target = null;
            target = (net.ofx.types.x2003.x04.GenericNameType)get_store().find_element_user(COLNAME$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "COLNAME" element
     */
    public void setCOLNAME(java.lang.String colname)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(COLNAME$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(COLNAME$0);
            }
            target.setStringValue(colname);
        }
    }
    
    /**
     * Sets (as xml) the "COLNAME" element
     */
    public void xsetCOLNAME(net.ofx.types.x2003.x04.GenericNameType colname)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.GenericNameType target = null;
            target = (net.ofx.types.x2003.x04.GenericNameType)get_store().find_element_user(COLNAME$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.GenericNameType)get_store().add_element_user(COLNAME$0);
            }
            target.set(colname);
        }
    }
    
    /**
     * Gets the "COLTYPE" element
     */
    public java.lang.String getCOLTYPE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(COLTYPE$2, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "COLTYPE" element
     */
    public net.ofx.types.x2003.x04.ColumnType xgetCOLTYPE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.ColumnType target = null;
            target = (net.ofx.types.x2003.x04.ColumnType)get_store().find_element_user(COLTYPE$2, 0);
            return target;
        }
    }
    
    /**
     * Sets the "COLTYPE" element
     */
    public void setCOLTYPE(java.lang.String coltype)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(COLTYPE$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(COLTYPE$2);
            }
            target.setStringValue(coltype);
        }
    }
    
    /**
     * Sets (as xml) the "COLTYPE" element
     */
    public void xsetCOLTYPE(net.ofx.types.x2003.x04.ColumnType coltype)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.ColumnType target = null;
            target = (net.ofx.types.x2003.x04.ColumnType)get_store().find_element_user(COLTYPE$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.ColumnType)get_store().add_element_user(COLTYPE$2);
            }
            target.set(coltype);
        }
    }
}
